import request from '@/utils/request'

// 查询人员信息
export function queryOnePersonInfo(query) {
  return request({
    url: '/personInfoController/queryOnePersonInfo',
    method: 'get',
    params: query
  })
}

// 工资信息
export function getPersonSalaryInfo(query  ) {
  return request({
    url: '/agencySalaryController/getPersonSalaryInfo',
    method: 'get',
    params: query
  })
}
// 工资信息
export function getSalaryMonthEedSubmit(query) {
  return request({
    url: '/agencySalaryController/getSalaryMonthEedSubmit',
    method: 'get',
    params: query
  })
}

// 通过单位id和工资类型查询已有人数
export function queryExistingNumber(query) {
  return request({
    url: '/personOperateStandardController/queryExistingNumber',
    method: 'get',
    params: query
  })
}

// 通过单位id和工资类型查询编制限制人数
export function queryAgencyPersonRestrict(query) {
  return request({
    url: '/personOperateStandardController/queryAgencyPersonRestrict',
    method: 'get',
    params: query
  })
}

// 变更历史类型
export function getPersonOperateRecordType(query) {
  return request({
    url: '/personOperateController/getPersonOperateRecordType',
    method: 'get',
    params: query
  })
}

// 变更历史
export function getPersonOperateRecord(query) {
  return request({
    url: '/personOperateController/getPersonOperateRecord',
    method: 'get',
    params: query
  })
}
